package com.hp.ssmp.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;

public class TGoods {

  @TableId(value = "GOODSID",type = IdType.AUTO) //主键自增
  private Long goodsid;
  private Long categoryid;
  private String goodsname;
  private String goodsimg;
  private BigDecimal goodsprice;
  private Long promotiontype;
  private Long goodsstatus;
  private Long goodsstock;
  private String goodsdetails;

  public Long getGoodsid() {
    return goodsid;
  }

  public void setGoodsid(Long goodsid) {
    this.goodsid = goodsid;
  }

  public Long getCategoryid() {
    return categoryid;
  }

  public void setCategoryid(Long categoryid) {
    this.categoryid = categoryid;
  }

  public String getGoodsname() {
    return goodsname;
  }

  public void setGoodsname(String goodsname) {
    this.goodsname = goodsname;
  }

  public String getGoodsimg() {
    return goodsimg;
  }

  public void setGoodsimg(String goodsimg) {
    this.goodsimg = goodsimg;
  }

  public BigDecimal getGoodsprice() {
    return goodsprice;
  }

  public void setGoodsprice(BigDecimal goodsprice) {
    this.goodsprice = goodsprice;
  }

  public Long getPromotiontype() {
    return promotiontype;
  }

  public void setPromotiontype(Long promotiontype) {
    this.promotiontype = promotiontype;
  }

  public Long getGoodsstatus() {
    return goodsstatus;
  }

  public void setGoodsstatus(Long goodsstatus) {
    this.goodsstatus = goodsstatus;
  }

  public Long getGoodsstock() {
    return goodsstock;
  }

  public void setGoodsstock(Long goodsstock) {
    this.goodsstock = goodsstock;
  }

  public String getGoodsdetails() {
    return goodsdetails;
  }

  public void setGoodsdetails(String goodsdetails) {
    this.goodsdetails = goodsdetails;
  }

  @Override
  public String toString() {
    return "TGoods{" +
            "goodsid=" + goodsid +
            ", categoryid=" + categoryid +
            ", goodsname='" + goodsname + '\'' +
            ", goodsimg='" + goodsimg + '\'' +
            ", goodsprice=" + goodsprice +
            ", promotiontype=" + promotiontype +
            ", goodsstatus=" + goodsstatus +
            ", goodsstock=" + goodsstock +
            ", goodsdetails='" + goodsdetails + '\'' +
            '}';
  }
}
